<?php
/***************
* @Project	Warabi
* @Author	Feifei
* @Date		04/20/2009
***************/

/**This module is to deal the ap server state request**/
/***put the response to the client**/
include_once($_SERVER['DOCUMENT_ROOT'].'/header.inc.php');

$tid = getTid();
$resBody = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
$resBody .= "<entry>";
$resBody .= "<tid>".$tid."</tid>";
$resBody .= "<info>";
$resBody .= "<expire time='".expire_time."' unit='".strtoupper(substr(expire_unit,0,1))."' />";
$resBody .= "<numcopy number='".number_copy."' />";
$resBody .= "<numphoto number='".number_photo."' />";
$resBody .= "<description lang='".description_lang."' message='".description_message."' />";
$resBody .= "</info>";
$resBody .= "</entry>";

header(success_response);
header('Content-Type: text/xml');
header('Content-Length: '.strlen($resBody));
echo $resBody;

?>

